package com.copa.module.goods.mapper;

import com.copa.module.goods.domain.dto.IndexGoodsListDto;
import com.copa.module.goods.domain.entity.GoodsEntity;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author copa
 * @createDate 2021-01-14
 * @function t_goods表 Mapper 接口
 */
@Mapper
public interface GoodsDao extends BaseMapper<GoodsEntity> {

    List<IndexGoodsListDto> findIndexList();

    List<IndexGoodsListDto> findGoodsByCategoryId(@Param("categoryId") Long categoryId);

    List<IndexGoodsListDto> findGoodsByGoodsName(@Param("goodsName") String goodsName);
}
